package enum_package;

enum ShirtSize{S, M, L, XL}

class MyShirt
{
    private ShirtSize myShirt;
    public void setShirtSize(ShirtSize l)
    {
        this.myShirt = l;
    }
    public ShirtSize getShirtSize()
    {
        return myShirt;
    }
}
public class ExternalEnum
{
    public static void main(String[] args)
    {
        ShirtSize s = ShirtSize.S;
        ShirtSize l = ShirtSize.L;
        ShirtSize m = ShirtSize.M;
        
        MyShirt ms = new MyShirt();
        
        ms.setShirtSize(s);
        System.out.println("1: "+ ms.getShirtSize());
        
        ms.setShirtSize(l);
        System.out.println("2: "+ ms.getShirtSize());
        
        ms.setShirtSize(m);
        System.out.println("3: "+ ms.getShirtSize());
    }

}
